<?php
/**
 * Created by PhpStorm.
 * User: YFTD
 * Date: 2019/3/18
 * Time: 16:18
 */

namespace App\Models\Logistics;


use Illuminate\Database\Eloquent\Model;

class Logistics extends Model
{
    protected $table = 'logistics';
    protected $primaryKey = 'logistics_id';
    protected $fillable = [
        'name',
        'logistics_company',
        'logistics_company_id',
        'cost_way',
        'price',
        'status',
        'is_default',
        'desc',
        'province_code',
        'city_code',
        'area_code',
        'seller_id',
    ];


    public function price()
    {
        return $this->hasMany(LogisticsPrice::class, 'logistics_id', 'logistics_id');
    }
}